package com.sifang.controller;


import com.sifang.domain.Archives;
import com.sifang.domain.Result;
import com.sifang.service.IArchivesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/driver")
public class ArchivesController {
    @Autowired
    private IArchivesService iarchivesService;

    //驾驶员档案
    @GetMapping("/archives")
    public Result<Archives> list(Integer id){
        Archives a = iarchivesService.list(id);
        return Result.success(a);
    }
}
